065 trend views data logging of process value 2
好吧,现在我们来谈谈日志记录..
Alright let's talk about the logging now..
所以我们这里有这些按钮,您已经在第一个视频中看到了它的操作,所以让我删除这些按钮并再次为您设计它,所以我要删除的所有内容都可以,所以我们需要在这里记录字符串,因此我们将转到历史数据,这是 HMI 树中的选项 - 历史数据,让我删除我的历史趋势。
so we have these buttons here and you have seen its operation in the first video so let me remove these button and design it for you again so everything I'm going to remove all right so we need to log the string here so for that we'll go to historical data this is the option in HMI tree - Historical data and let me remove my historical trends.
好的?
All right?
因此,这是默认视图,您要做的就是确保选择了数据日志,然后双击此视图,这是一个数据日志,让我将其重命名为“水箱液位”,好吗?
So this is the default view what you have to do is make sure your data logs are selected and double click this one so this is a data log one let me rename it to 'Tank level' Alright?
因此,这是您的数据日志的名称,默认情况下,您希望将此值写入文本文件 500 条数据记录,您希望这是路径 - 您的文件将存储在其中。
So this is the name for your data log let it be by default that you want to write this value in a text file 500 data records you want this is the path - where your files will be stored.
因此,如果这是您的 HMI,这将出现在我的“C 驱动器”中,这将存储在您的 HMI 内存中,好吧,默认记录方法让它成为循环日志,这意味着您想开始自动记录数据吗?
So this will come in my 'C Drive' if it's your HMI this will be stored in your HMI memory alright logging method by default let it be circular log and this means would you like to start log the data automatically?
一旦HMI启动,使其成为“是”,让它被勾选,这个选项意味着将数据附加到现有日志意味着-一旦开始记录,它是否应该将值添加到最后一个日志?
Once the HMI is started so that it be 'yes' Let it be ticked and this option means append data to existing log means - once you start logging should it add the values to the last log?
或者应该重置该值并再次启动日志?
or should it reset the value and start the log again?
因此,让它将模拟附加到现有日志中。
So let it be append analog to existing log.
好的?
All right?
现在这是我的数据日志的默认设置,现在我们必须定义日志记录标签。
Now this is the default setting for my data log now we have to define the logging tag.
所以在这里选择这个来到这里,所以这是我的日志记录标签 1 现在我知道我的“标签 18”是我想要记录的标签,所以从这里我将选择“标签 18”这是给我的标签级别,所以选择这一采集方式是循环的,也就是说多少次后会自动记录该标签?
So here select this one come here, so this is my logging Tag 1 now I know that my 'Tag 18' is the tag which I want to log so from here I will select 'Tag 18' this is the tag which is giving me the level, so select this one acquisition mode is cyclic, it means it will automatically record the tag after how many (much) times?
这是值“10 秒”,我希望 5 秒对我来说足够了。
This is the value '10 second', I would like 5 second is good enough for me.
是的,所以更高的限制,如果你有任何更高的限制,当然我有 100,我可以用一个常数给出 - 100 下限对我来说为零,我可以得到一个下限常数零。
Yeah so higher limit if you have any higher limit, of course I have which is 100 which I can give by a constant - 100 Lower limit is zero for me I can get a lower limit constant zero.
现在,如果您想记录标签,这些限制将会很有帮助,如果您的标签在此限制内或超出此限制,则此选项来自此处,它在 Deadman 中表示,所以这是我的乐队,如果我的值在 0 到 100 之间,它将记录它或者如果我的值超出这个限制,那么只有它会记录它,所以这就是记录的条件,但我想一直记录它,所以让它在死区内。
Now these limits would be helpful if you want to record the tag if your tag is within this limit or beyond this limit this option comes from here it says within Deadman so this is my band if my values between 0 to 100, it will record it or if my values outside this limit then only it will record it so this is the this is the condition for recording but I want to record it all the time so let it be within dead band.
好的?
Okay?
好的,所以这应该是 5 秒。
Alright, so this should be 5 second.
好的,这是我的日志记录标签,现在你要做的就是签出这个文件,当你开始日志记录时就会出现这个文件,所以让我开始我的 HMI 模拟,你会注意到我的日志记录已经因为这个选项而自动开始这里启用实时日志记录,所以让我们看看我在这里记录的内容,所以我的日志的值让我可以更改这里的值,但我们可以看到我的“C 驱动器”中的值有所不同,如果您看到此文件夹 USB水箱液位是自动生成的,到目前为止我们已经记录了五个值。
Ok so this is my logging tag and now what you have to do is you just check out this file this will come when you start logging so let me just start my HMI simulation and you will notice my logging has been started automatically because of this option which is here enable logging in real time so let's see what I am recording here so the value of my logs let me change the values here but we can see different in the values comes in my 'C Drive' and if you see this folder USB and tank level this is automatically generated and so far we have recorded five values.
好的?
Okay?
现在是 35,如果我再次刷新它,那就是 41,所以每 5 秒后我就会得到一个值。
This is 35 now if i refresh it again that's 41 so after every 5 second I'm having a value.
好吧?
Alright?
这是自动日志记录,我们没有定义任何“登录”、“停止日志记录”或“清除日志”按钮,这将继续记录最多 500 条记录,如果这是您的要求,那么您可以这样做,这不是您的要求,如果您需要一些按钮,让我们看看如何做到这一点,在这种情况下,我必须取消选中此选项,因为我们不希望自动记录,所以取消选中此选项,然后返回到您的 HMI 屏幕,现在我需要一些启动和停止日志的按钮我可以从这里获取它让我们将其命名为开始日志记录。
This is automatic logging we haven't defined any buttons for 'logging on', 'stop logging' or 'clear the log' this will keep on going on up to 500 records alright if this is your requirement that's how you can do it and this is not your requirement if you need some buttons let's see how we can do that so in that case I have to uncheck this option because we don't want automatic logging so uncheck this option and come back to your HMI screen now here I need some buttons to start and stop the log I can take it from here let's name it as start logging.
好吧?
Alright?
现在,按下该按钮时,应该在事件中为该按钮赋予一个属性,以便您可以从历史数据开始记录它应该记录的内容中选择该选项。
Now this button should be given a property in the events when this is pressed so you can select the option from historical data start logging now what it should log.
我们应该定义您在此处给出的坦克液位日志,因为坦克液位具有地址,因此一旦您按下此按钮,它将启动坦克液位日志。
We should define the log which you have given here Tank level because then Tank level has the address so once you press this button it will start the tank level log.
正确的?
Correct?
同样,我们需要另一个按钮,所以我只需复制粘贴这个按钮,这对我来说非常容易,让我们将其重命名为“停止记录”,在这里我再次需要更改此功能历史数据停止记录,在这里您可以提供选项“ Tank level'这是日志,因为此日志按钮专用于测试日志 - 趋势视图右侧,因此这是开始和停止,如果您想清除日志 - 要清除值,您还可以在此处提供另一个按钮,这是清晰,如果你只想用一些颜色来表示这个按钮,我想给它绿色,看起来很棒?
Similarly we need another button so I'll just copy paste this one which is pretty easy for me and let's rename is as 'Stop logging' and again here I need to change this function Historical data stop logging and here you can give the option 'Tank level' this is the log because this log buttons are dedicated to test log - the trend view right so this is start and stop and if you want to clear the log - to clear the values you can also give another button here and this is clear and if you just want to represent this button with some colors I would like to give it green that looks great?
好吧,如果您需要此处记录的反馈,您可以做的是,您可以将代表一种 LED 的矩形放在此处,在此之前让我们添加一个文本“记录状态”,好吗?
Alright so if you need a feedback of this logging here what you can do is you can take a rectangle which will represent a kind of LED put it here and before that let's add a text 'Logging status' okay?
所以保持在右边好吗?
So keep it to the right all right?
我想用红色和绿色为这个矩形设置动画,如果它正在记录,它应该是绿色,如果不是,它应该是红色?
I want to animate this rectangle with red and green color, if it is logging it should be Green if it is not it should be red?
所以去它的动画显示一个新的动画外观现在范围如果它是零我想要一个红色,边框也是红色如果范围是1如果范围是1,我想要一个带有绿色边框的绿色现在应该做什么是标签,所以要定义它的标签我想使用HMI标签,所以在HMI标签中我已经创建了一个标签,它是我的登录标签,所以这是我的HMI内部标签,这是布尔类型我可以使用这个日志记录标签只是为了显示 LED,因此在日志标签的动画中,您可以自己定义此标签。
So go to its animation display a new animation appearance now range if it's zero I would like a red color, border is also red if range is if the range is 1, I would like a green color with a green border all right now what should be the tag so to define its tag I would like to use a HMI tag so in HMI tags I've already created a tag which is my login tag so this is my internal tag of HMI, this is boolean type I can use this logging tag just to display the led so here in the animation in logging tag you can define this tag by yourself.
好吧?
Alright?
我想我们已经完成了,所以让我重新检查数据五秒钟,好吧,一切看起来都不错,所以让我们启动 HMI,好吧,它已经满了,所以让我们检查水箱液位,这是我们最后的值,所以你可以看到这不再改变,所以让我们清除日志,通过清除日志,哦,一会儿我们还没有定义这些按钮的功能,所以开始记录。
I think we are done so let me just recheck the data five seconds okay everything looks okay so let's start the HMI all right this is already full so let's check the tank level so this is the last values which we had, so you can see that this is not changing anymore so let's clear the log so by clearing the log, oh one moment we haven't defined the functions to these buttons so start logging.
在事件中 - 给出开始,给出停止。
In the events - Start is given, stop is given.
清除!?
Clear!?
它没有给出,所以为了清楚起见,我将添加清除日志,并再次添加储罐液位的数据,现在它可以工作了,所以让我清除日志日志现在已清除,所以让我只输入一些消耗值,让我们开始日志记录,所以一旦我按下开始,您会注意到每 5 秒后将在此处记录这些值,这是该值..又是一些值..
it's not given so for the clear I'm going to add clear log and again the data for tank level all right now it's going to work so let me clear the log log is cleared now so let me just put some draining value and let's start the logging so once I press start you will notice the values will be recorded here after every 5 seconds this is the value..again some values..
当然你可以改变这个时间的频率,我用5秒来解释。
of course you can change the frequency of this time for me its 5 second used for explanation.
因此,某些想要在某个特定时间操作这些值的主管可以使用此功能,这样您可以按“开始”,然后按“停止”来停止这些值。
So this can be this can be used by some supervisor who wants to operate the values at some specific time so you can press Start and then you can press stop to stop the values..
所以按停止后这个值不会超过 45...
so after pressing stop this value will not go beyond 45...
所以这已经停止了所以这..
so this has been stopped so this..
让我们注意一下为什么这不是绿色!?
lets just notice why this is not Green!?
让我再检查一遍,好吧,我们一步都没做。
let me check it again all right we didn't do one step.
现在让我们停止记录,使其变成绿色,我们必须设置这个位,这样这个位就可以通过按下开始记录按钮为“1”,所以转到它的事件并转到新闻机,在这里做设置位并在设置位中您可以定义要设置哪一位吗?
Let's stop the logging now to make it green we have to set this bit alright so this bit can be '1' by pressing start logging button okay so go to it event and go to the press and here do set bit and in the set bit you can define which bit you want to set?
您想要设置记录位。
You want to set the logging bit.
好吧?
Alright?
所以当我按下开始记录时,这将是绿色的?
so when I press start logging this will be Green?
要停止这一点,我将使用停止按钮,并且我可以在此处使用重置位,这在“设置重置”功能中非常容易,我们已经看过第一个视频了,所以让我们再次注意它,因为这..好吧 - 现在..
To stop this bit I will use stop button and I can use reset bits here this is pretty easy in the 'set reset' function we have seen the first videos all right so let's notice it again because this ..Alright so-- right now ..
日志中有一些值,我们可以再次清除它 值已清除 现在让我们开始记录 现在它是绿色的 在这里给出一些值 现在值正在记录在我的日志中,由这个绿色 LED 指示,因为如果有人,您可能不会注意到出现在HMI &如果您不给出状态,请按开始,不知道按钮是否已被按下,因此,一旦您按下按钮,这总是有利于在 HMI 中提供反馈,因此这将被记录下来,这将需要按下停止键后最多可记录 500 个值,现在不会记录。
the log has some values we can clear it again values are cleared now let's start the logging now it is green give some values here now values are being recorded in my log which is indicated by this green LED because you may not notice otherwise if some person came on the HMI & press the start if you don't give the status it is unknown whether the button has been pressed or not alright so this is always beneficial to give a feedback in the HMI once you press the button okay so this is being logged and this will take up to 500 values once you press the stop this is not logging now.
因此,它将保留最后的值,您也可以在 Excel 工作表中打开此文件,例如,如果我打开 Excel 文件并将其拖到此处,您会注意到这些值也来到这里,您可以在此处制作一些图表以您喜欢的图形格式表示这些值。
So it will preserve the last values and you can also open this file in the excel sheet so for example if I open the excel file and I just drag it here you will notice the values are coming here as well and you can make some graphs here to represent these values in a graphical format however you like.
这样就可以很容易地在 Excel 工作表中打开。
So this is easily be open in the excel sheet.
好吧,我希望这节课是有意义的,因为一旦您进行了数据记录,您还可以将该数据通过电子邮件发送给您在海外认识的人进行一些监督或进行一些数据分析,如果您想根据期间记录的值做出一些决定,那么这是非常有用的数据记录时间 好吧,如果您对此视频有任何疑问,如果您无法记录数据,您可以回复我,我们可以共同解决任何疑问。如果您有疑问,谢谢您的观看,祝您度过愉快的时光?
Alright I hope this lesson is meaningful because once you do the data logging you can also email that data to somebody you know offshore for some supervision or for some data analysis this is very beneficial if you want to take some decision based on the values recorded during the data logging time all right if you have any doubt in this video if you are unable to log your data you can get back to me and we can together resolve any queries if you have alright Thank you for watching have a nice time ?
你你
you you